package com.rawchen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rawchen.entity.ScheduleJob;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @Description: 定时任务持久层接口
 */
@Mapper
@Repository
public interface ScheduleJobMapper extends BaseMapper<ScheduleJob> {
	/**
	 * 更新定时任务状态
	 *
	 * @param jobId  任务ID
	 * @param status 新的任务状态
	 */
	int updateJobStatusById(Long jobId, Boolean status);
}
